Skip to content

Conversation

@chfaft
Copy link

@chfaft chfaft commented Nov 27, 2025

Description

This PR extends extension support for the Tauri installer by considering not only fragment_paths for extension inclusion, but also the main main.wxs configuration file itself.
Previously, the integration of extensions was limited to fragments, making it harder to manage installer customization in a centralized location.

What’s changed

  • Extensions defined in both fragment_paths and the main main.wxs file are now recognized and included during the installer build process.
  • The logic for extension detection and inclusion has been unified, streamlining the handling of installer resources and extensions.

Why

This change allows developers to manage all necessary installer extensions directly in fragments as well as in template, enabling more flexible and maintainable Windows installer configurations and reducing the need to split extension logic unnecessarily.

@chfaft chfaft requested a review from a team as a code owner November 27, 2025 17:50
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Nov 27, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2025

Package Changes Through a88fbe5

There are 1 changes which include tauri-bundler with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-bundler 2.7.4 2.7.5
@tauri-apps/cli 2.9.5 2.9.6
tauri-cli 2.9.5 2.9.6

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Legend-Master
Legend-Master previously approved these changes Dec 1, 2025
Copy link
Contributor

@Legend-Master Legend-Master left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Do you mind also adding a change file?

https://github.com/tauri-apps/tauri/blob/dev/.changes/README.md

And just a question, this is for custom templates right (bundle > windows > wix > template)?

let fragment_content = fs::read_to_string(&fragment_path)?;
let fragment_handlebars = Handlebars::new();
let fragment = fragment_handlebars.render_template(&fragment_content, &data)?;
let input_paths = std::iter::once(output_path.join(PathBuf::from("main.wxs")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nitpick, we can reuse main_wxs_path here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Nitpick is applied.

@chfaft chfaft force-pushed the feat/ext-support-in-main-wxs branch from dcf7564 to 2855f13 Compare December 1, 2025 14:55
chfaft and others added 2 commits December 1, 2025 18:20
chore(bundler): avoid clone and use reference.

Co-authored-by: Tony <[email protected]>
chore(bundler): reclassify changes.

Co-authored-by: Tony <[email protected]>
@chfaft chfaft requested a review from Legend-Master December 1, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

2 participants